package com.sup.generator.config;

/**
 * @author Zh
 * @version v1.0
 * @description:
 * @date 2020/11/13 19:39
 */
public class GrRedisPrefixConfig {

    public static final GrRedisPrefixConfig LOGIN_TOKEN = new GrRedisPrefixConfig("login_token", 100);

    private Long seconds;
    private String prefix;

    private GrRedisPrefixConfig(String prefix, Integer seconds){
        this.prefix = prefix;
        this.seconds = Long.valueOf(seconds);
    }

    private GrRedisPrefixConfig(String prefix){
        this.prefix = prefix;
        this.seconds = 0L;
    }

    public Long getSeconds() {
        return seconds;
    }

    public String getPrefix() {
        return prefix;
    }
}
